/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 高生平
 * Date: 2025-09-17
 * Time: 18:59
 */
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            Data data = new Data(x, y);
            System.out.println(data.getX() + data.getY());
        }
    }

}

class Data {

    private int x;
    private int y;

    //private Data(int x, int y) {
    public Data (int x, int y) {
        //题目原码：
//        x = x;
//        y = y;

        //修改后：
        this.x = x;
        this.y = y;
    }

    //题目原码用private修饰了getX()，导致getX()只能在Data类中使用
//    private int getX() {
//        return x;
//    }

    //修改后：
    public int getX() {
        return x;
    }

    //题目原码用private修饰了getY()，导致getY()只能在Data类中使用
//    private int getY() {
//        return y;
//    }

    //修改后：
    public int getY() {
        return y;
    }
}
